﻿namespace AmiCheckin.UI
{
    /// <summary>
    /// Interaction logic for MainWindow.xaml
    /// </summary>
    public partial class MainWindow
    {
        private static MainWindow _instance;
        public static MainWindow Instance
        {
            get
            {
                if (_instance is null)
                {
                    _instance = new MainWindow();
                    _instance.Closed += delegate (object sender, System.EventArgs e)
                    {
                        _instance = null;
                    };
                }
                _instance.Show();
                return _instance;
            }

        }
        public MainWindow()
        {
            InitializeComponent();
        }

    }
}